#include "btonedata.h"

//malloc struct list new node
PBTNode NewNode(BTDataType value)
{
	PBTNode newnode = (PBTNode)malloc(sizeof(BTNode));
	if (!newnode)
	{
		perror("NewNode::malloc::");
		exit(0);
	}
	newnode->data = value;
	newnode->left = newnode->right = NULL;
	return newnode;
}
